module.exports = {
  // 默认配置 https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-plugin-unit-jest/presets/default/jest-preset.js
  preset: "@vue/cli-plugin-unit-jest",
  moduleFileExtensions: [
    "js",
    "jsx",
    "ts",
    "tsx",
    "json",
    // tell Jest to handle *.vue files
    "vue"
  ],
  testMatch: ["**/tests/unit/**/*.(spec|test).[jt]s?(x)", "**/__tests__/*.[jt]s?(x)"] // 匹配测试目录文件
};
